import React, { Component } from 'react'
import {connect} from 'react-redux'
import Nice from '../ComA/nice'


class ComB  extends Component {
    render() {
        return (
            <div>
                {this.props.count}
            <div>{this.props.username}</div>
            <Nice name='hahahaha'/>
            </div>
        )
    }
}
const mapStateToProps = (state) => {
    console.log(state);
    
    return state

}
export default connect(mapStateToProps)(ComB)